﻿using System;
using System.Collections.Generic;

namespace Models.Models;

/// <summary>
/// 消息
/// </summary>
public partial class SMessage
{
    /// <summary>
    /// 自增id
    /// </summary>
    public uint Id { get; set; }

    /// <summary>
    /// 用户id
    /// </summary>
    public uint UserId { get; set; }

    /// <summary>
    /// 标题
    /// </summary>
    public string Title { get; set; } = null!;

    /// <summary>
    /// 详情
    /// </summary>
    public string Detail { get; set; } = null!;

    /// <summary>
    /// 业务id
    /// </summary>
    public uint BusinessId { get; set; }

    /// <summary>
    /// 业务类型（0默认, 1订单, ...）
    /// </summary>
    public byte BusinessType { get; set; }

    /// <summary>
    /// 消息类型（0普通通知, ...）
    /// </summary>
    public byte Type { get; set; }

    /// <summary>
    /// 是否已读（0否, 1是）
    /// </summary>
    public byte IsRead { get; set; }

    /// <summary>
    /// 是否已删除（0否, 大于0删除时间）
    /// </summary>
    public uint IsDeleteTime { get; set; }

    /// <summary>
    /// 用户是否已删除（0否, 大于0删除时间）
    /// </summary>
    public uint UserIsDeleteTime { get; set; }

    /// <summary>
    /// 添加时间
    /// </summary>
    public uint AddTime { get; set; }
}
